﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="Tally.aspx.cs" Inherits="Ewts.Storage.Tally" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/Css/layout.css" rel="stylesheet" type="text/css" />
<link href="/css/public.css" rel="stylesheet" type="text/css" />
<link href="/css/demo_table_jui.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="/css/tab1.css" rel="stylesheet" />
<link rel="stylesheet" href="/css/tab4.css" type="text/css" />
<meta name="save" content="history"/> 
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <input type="hidden"  runat="server" id="hidtallyid" class="hidtallyid" value="0" />
    <input type="hidden" runat="server" id="hidloadid" class="hidloadid" value="0" />
    <input type="hidden" runat="server" id="hidoutid" class="hidoutid" value="0" />

<h2>原料理货</h2>    
<div class="ntab_bt">
    <table class="information" cellpadding="0" cellspacing="0">
    <tr>
        <td class="right">
        	<label>Load号:</label>
        </td>
        <td class="left">
            <%--<input name="ctl00$EwtsConext$txtLoad" type="text" id="EwtsConext_txtLoad" runat="server" disabled="disabled" />--%>
            <span id="EwtsConext_tdLoad" runat="server" class="spanload" ></span>
        </td>  
        <td class="right">
        	<label>客户名称:</label>
        </td>
        <td class="left">
            <span id="EwtsConext_tdCumName" runat="server" ></span>
        </td>

        <td class="right">
        	<label>接收日期:</label>
        </td>
        <td class="left">
        	<label name="txtWRLDate" id="txtWRLDate"  runat="server"></label>
        </td>
        <td class="right">
        	<label>处理日期:</label>
        </td>
        <td class="left">
            <input name="txtInFDate" type="text" id="txtInFDate" runat="server" class="date1"  />
            <input type="hidden" id="hidOperDate" class="hidOperDate" runat="server" />
        </td>
        <%--<td>
            <asp:Button ID="btnSearch" runat="server" Text="搜索" onclick="btnSearch_Click" />
            
        </td>--%>
    </tr>
    <tr>
    	<td class="right">总重量:</td>
        <td class="left"><label id="sumWeight" class="lblsumWeight" runat="server"></label></td>
        <td class="right"><label>状态:</label></td>  
    	<td class="left"><label id="lbclassStatus" runat="server"></label></td>
        <td class="right">理货编号</td>
        <td class="left"><input name="txttallyno" type="text" id="txttallyno" disabled="disabled" runat="server" class="txttallyno"  /></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    </table>
</div>
<div >
<table class="juxtaposition" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
        <h3>原料处理前余：<label id="lblBeforeNwt" runat="server"/></h3>
        <table id="tab_1" class="tab1 table" border="0">
            <tr>
                <th>序号</th>
                <th>物品编码</th>
                <th>物品名称</th>
                <th>净重</th>
                <th>数量</th>
                <th>废物编码</th>
                <th>废物类型</th>
                <th>联单号</th>
                <th>备注</th>
             </tr>
            <asp:Repeater ID="reptbefore" runat="server">
            <ItemTemplate>
            <tr>
                <td></td>
                <td><%# Eval("goodscode")%></td>
                <td><%# Eval("goodsname")%></td>
                <td><%# Eval("nwt")%></td>
                <td><%# Eval("qty")%></td>
                <td><%# Eval("rubbishcode")%></td>
                <td><%# Eval("rubbishtype")%></td>
                <td><%# Eval("continNo")%></td>
                <td><%# Eval("remark")%></td>
            </tr> 
            </ItemTemplate>
            </asp:Repeater>
        </table>
        </td>
        <td class="tableR">
        <h3>原料处理后余：<label id="lblAfterNwt" runat="server"/></h3>
            <table id="tab_2" class="tab1 table" border="0">
            <tr>
            <th>序号</th>
            <th>物品编码</th>
            <th>物品名称</th>
            <th>净重</th>
            <th>箱数</th>
            <th>数量</th>
            <th>废物编码</th>
            <th>废物类型</th>
            <th>归类</th>
            <th>箱号</th>
            <th>备注</th>
        </tr>
        <asp:Repeater ID="reptColl" runat="server">
        <ItemTemplate>
            <tr>
            <td></td>
            <td><%# Eval("goodscode")%></td>
            <td><%# Eval("goodsname")%></td>
            <td><%# Eval("nwt") %></td>
            <td><%# Eval("boxcount")%></td>
            <td><%# Eval("qty") %></td>
            <td><%# Eval("rubbishcode")%></td>
            <td><%# Eval("rubbishtype")%></td>
            <td><%# Eval("comeunder")%></td>
            <td><%# Eval("packageno")%></td>
            <td><%# Eval("remark")%></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        </table>
        </td>
    </tr>
</table>

<h3>理货处理前余：<label id="lblTallyBefore" class="css_nt_tb" runat="server"/></h3>
<table id="tab_3" class="tab1 table" border="0">
    <tr>
        <th>序号</th>
        <th>物品编码</th>
        <th>物品名称</th>
        <th>净重</th>
        <th>数量</th>
        <th>废物编码</th>
        <th>废物类型</th>
        <th>联单号</th>
        <th>归类</th>
        <th>箱号</th>
        <th>备注</th>
        <th></th>
    </tr>
    <tr>
        <td></td>
        <td><input id="txtgc_0" class="inputW" type="text" /> <input value="0" id="hidtxtgc_0id" type="hidden" />
        </td>

        <td><input id="txtgn_0" class="inputW" type="text" /></td>
        <td><input id="txtnt_0" class="inputW2" type="text" /></td>
        <td><input id="txtqty_0" class="inputW2" type="text" /></td>
        <td><input id="txtrubc_0" class="inputW" type="text" /></td>
        <td><input id="txtrubt_0" class="inputW" type="text" /><input value="0" id="hidrubc_0id" type="hidden" /></td>
        <td><input id="txtldh_0" class="inputW1" type="text" /></td>
        <td>
            <select id="dropcon_0">
                <option value="收费">收费</option>
                <option value="付费">付费</option>
                <option value="差异报告">差异报告</option>
                <option value="直销">直销</option>
                <option value="" selected="selected">无</option>
            </select>
        </td>
        <td><input id="txtboxno_0" class="inputW1" type="text" /></td>
        <td><input id="txtremark_0" class="inputW" type="text" /></td>
         
        <td>
            <input type="hidden" value="0" id="hidbid" />
            <input type="button" id="btnIn0" value="插入" />
        </td>
   </tr>
     <asp:Repeater ID="ReptBef" runat="server">
    <ItemTemplate>
    <tr>
        <td><%# Container.ItemIndex + 1 %></td>
        <td><%# Eval("goodscode")%></td>
        <td><%# Eval("goodsname")%></td>
        <td class="td_tb_nt"><%# Eval("netwegight")%></td>
        <td><%# Eval("quantity")%></td>
        <td><%# Eval("rubbishcode")%></td>
        <td><%# Eval("rubbishname")%></td>
        <td><%# Eval("kupono")%></td>
        <td><%# Eval("classify")%></td>
        <td><%# Eval("boxno")%></td>
        <td><%# Eval("remark")%></td>
     
         <td>
            <a href="javascript:void(0)" onclick="editData(this,'b',<%# Eval("id") %>)">编辑</a>
             <a onclick="javascript:delData(this,'b',<%# Eval("id") %>)">删除</a>
         </td>
   </tr>
   </ItemTemplate>
    </asp:Repeater>
 </table>
 <h3>理货处理后余：<label id="lblTallyAfter" class="css_nt_ta" runat="server"/></h3>
<table id="tab_4" class="tab1 table" >
    <tr>
         <th>序号</th>
        <th>物品编码</th>
        <th>物品名称</th>
        <th>净重</th>
        <th>箱数</th>
        <th>数量</th>
        <th>废物编码</th>
        <th>废物类型</th>
        <th>联单号</th>
        <th>归类</th>
        <th>箱号</th>
        <th>备注</th>
        <th>操作</th>
    
    </tr>
    <tr>
        <td></td>
        <td><input id="txtgc_1" class="inputW" type="text" /><input id="hidtxtgc_1id" value="0" type="hidden" /></td>
        <td><input id="txtgn_1" class="inputW" type="text" /></td>
        <td><input id="txtnt_1" class="inputW2" type="text" /></td>
        <td><input id="txtboxcount_1" class="inputW2" type="text" /></td>
        <td><input id="txtqty_1" class="inputW2" type="text" /></td>
        <td><input id="txtrubc_1" class="inputW" type="text" /><input id="hidrubc_1id" value="0" type="hidden" /></td>
        <td><input id="txtrubt_1" class="inputW" type="text" /></td>
        <td><input id="txtldh_1" class="inputW1" type="text" /></td>
        <td>
            <select id="dropcon_1">
                <option value="收费">收费</option>
                <option value="付费">付费</option>
                <option value="差异报告">差异报告</option>
                <option value="直销">直销</option>
                <option value="" selected="selected">无</option>
            </select>
        </td>
        <td><input id="txtboxno_1" class="inputW1" type="text" /></td>
        <td><input id="txtremark_1" class="inputW" type="text" /></td>                        
        <td>
            <input type="hidden" value="0" id="hidaid" />
            <input type="button" id="btnIn1" value="插入" />
        </td>
    </tr>
   <asp:Repeater ID="reptAft" runat="server">
    <ItemTemplate>
   
    <tr>
        <td><%# Container.ItemIndex + 1 %></td>
        <td><%# Eval("goodscode")%></td>
        <td><%# Eval("goosdname")%></td>
        <td class='td_ta_nt'><%# Eval("nt")%></td>
        <td><%# Eval("boxcount")%></td>
        <td><%# Eval("qty")%></td>
        <td><%# Eval("rubbishcode")%></td>
        <td><%# Eval("rubbishname")%></td>
        <td><%# Eval("kupono")%></td>
        <td><%# Eval("classify")%></td>
        <td><%# Eval("boxno")%></td>
        <td><%# Eval("remark")%></td>
        
        <td>
            <a href="javascript:void(0)" onclick="editData(this,'a',<%# Eval("id") %>)">编辑</a>
            <a href="javascript:void(0)" onclick="delData(this,'a',<%# Eval("id") %>)">删除</a>
        </td>
    </tr>
     </ItemTemplate>
    </asp:Repeater>
    </table> 
</div>
 <div>
     <asp:Button ID="btnSave" runat="server" Text="提交" onclick="btnSave_Click" />
    </div>
<script type="text/javascript" src="/js/tally.js"></script>   
</label>
</label>
</asp:Content>

